package com.example.demo.pdfbox.tabel.concrete;

import com.example.demo.pdfbox.tabel.PdfElement;
import lombok.Getter;

import java.awt.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Getter
public class PdfGraph extends PdfElement implements Serializable {
    private List<PdfLine> lines=new ArrayList<>();

    private Color fillColor;


    public PdfGraph setFillColor(Color fillColor) {
        this.fillColor = fillColor;
        return this;
    }

    public PdfGraph setLines(List<PdfLine> lines) {
        this.lines = lines;
        return this;
    }

    public PdfGraph addLine(PdfLine line) {
        this.lines.add(line) ;
        return this;
    }
}
